package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class GoodsEvaluateMain implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer gEvaMainId; //商品评价主表编号

    private Integer userId; //用户编号 默认为NULL 允许为空
    @TableField(exist = false)
    private String userName; //用户名字
    @TableField(exist = false)
    private String userImage; //用户头像

    private Integer goodsId; //商品编号
    private Integer styleId; //样式编号 默认为NULL 允许为空

    private String detail; //评价详情
    private String image; //评价图片
    private Integer score; //评分

    @TableField(exist = false)
    private Integer evaFromNum; //从评价数量
    @TableField(exist = false)
    private List<GoodsEvaluateFrom> evaFromList; //从评价列表

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
